We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.

Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)

Bug 3392578 - %error is swallowed when %if condition "operands differ by a non-scalar"
Summary: %error is swallowed when %if condition "operands differ by a non-scalar"
Status: OPEN
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: 2.14.xx
Hardware: All All
: MediumHigh normal
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2019-06-27 05:33 PDT by E. C. Masloch
Modified: 2022-10-05 11:51 PDT (History)
4 users (show)

Obtained from: Built from git using configure
Generated by: ---
Bug category:
Observed for: ---
Regression: ---
Regression since:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E. C. Masloch 2019-06-27 05:33:07 PDT
This came up during development when an %if accidentally received the sum of two symbols, instead of the delta. In that case, %error is effectively ignored.

$ cat test.asm
symbol:
%if (symbol + symbol) > 1
 %fatal Should not see this.
%endif
%error Should see this.
$ nasm -v
NASM version 2.14.03rc2 compiled on Jun  6 2019
$ nasm test.asm
test.asm:2: error: `>': operands differ by a non-scalar
$